<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/mui.indexedlist.css" />
		<link rel="stylesheet" type="text/css" href="css/all_app.css" />
		<link rel="stylesheet" type="text/css" href="css/phone_list.css" />
		<style>
			.mui-bar-nav {
				box-shadow: none;
				background: #FF7234;
				text-align: center;
			}
			
			.mui-title {
				color: #fff;
			}
			
			.mui-action-back {
				color: #fff;
			}
			
			.mui-bar .mui-btn-link {
				color: #fff;
			}
			/*首页字体*/
			
			.mui-bar .homebtn {
				color: #FFFFFF;
				position: absolute;
				top: 11px;
				right: 11px;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left backbtn"></a>
			<h1 class="mui-title">运营商认证</h1>
			<a class=" mui-pull-right homebtn">资质</a>
		</header>
		<script src="../lib/mui.min.js"></script>
		<script type="text/javascript" src="../lib/jquery-1.11.0.js"></script>
		<script type="text/javascript" src="../lib/service.js"></script>
		<script type="text/javascript">
			mui.init({})
			mui.plusReady(function() {
				plus.nativeUI.showWaiting()
				var str = localStorage.getItem('userinfo')
				var userid = JSON.parse(str).id
				var self = plus.webview.currentWebview();
				var baiduWV = plus.webview.create("https://api.51datakey.com/h5/importV3/#/carrier?userId=" + userid + "&apiKey="+ moxieApiKey +"&backUrl=http://www.huosgo.com/", "baidu", {
					top: 45 
				});
				//				//				baiduWV.appendJsFile("_www/js/insert.js"); 
				self.append(baiduWV);
				baiduWV.addEventListener('loaded', function(event) {
					plus.nativeUI.closeWaiting()
					console.log("监听事件=========" + baiduWV.getURL())
					var url = baiduWV.getURL().split('?')[0];
					if(url == "http://www.huosgo.com/") {
						checkAuth(4)

						//						plus.webview.getLaunchWebview().evalJS("activeModel()")
						//						plus.webview.close(plus.webview.currentWebview())
					}
				})
				//返回资质列表
				$('.homebtn').bind('tap', function() {
					plus.webview.getWebviewById('../real-name/real-name.html').close();
					plus.webview.currentWebview().close()
				})
			})
		</script>
	</body>

</html>